package com.axjy.mapper;

import com.axjy.pojo.LineInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by l on 2018/1/31.
 */
public interface LineInfoMapper {

    /**
     * 模糊查询
     * @param offset
     * @param limit
     * @param lineCode
     * @param runningStatusName
     * @return
     */
    public List<LineInfo> mhSearch(@Param("offset") Integer offset, @Param("limit") Integer limit,@Param("lineCode") String lineCode,@Param("runningStatusName") String runningStatusName);

    public List<LineInfo> search();

    public Integer searchTotal(@Param("lineCode") String lineCode,@Param("runningStatusName") String runningStatusName);

    /**
     * 添加线路
     * @param line
     * @return
     */
    public Integer addLine(LineInfo line);

    /**
     * 删除线路
     * @param lineCode
     * @return
     */
    public Integer delLine(@Param("lineCode") String lineCode);

    /**
     * 修改线路
     * @param line
     */
    public void updateLine(LineInfo line);

    /**
     * 修改状态
     * @param id
     * @param isStart
     */
    public void updateStart(@Param("id") Integer id,@Param("isStart") Integer isStart,@Param("runningStatus") Integer runningStatus,@Param("runningStatusName")String runningStatusName);


}
